﻿using SmugMugApiWrapper;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System.Net;
using System.Xml;

namespace SmugMugAPIWrapperTest
{
    
    
    /// <summary>
    ///This is a test class for SmugMugApiTest and is intended
    ///to contain all SmugMugApiTest Unit Tests
    ///</summary>
    [TestClass()]
    public class SmugMugApiTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SmugMugRequest
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void SmugMugRequestTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            bool withSession = false; // TODO: Initialize to an appropriate value
            bool useSSL = false; // TODO: Initialize to an appropriate value
            string method = string.Empty; // TODO: Initialize to an appropriate value
            Dictionary<string, string> parameters = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.SmugMugRequest(withSession, useSSL, method, parameters);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SmugMugBinaryUpload
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void SmugMugBinaryUploadTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            string fileName = string.Empty; // TODO: Initialize to an appropriate value
            PostPicturesToSmugMugArguments arguments = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.SmugMugBinaryUpload(fileName, arguments);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PostPicturesToSmugMug
        ///</summary>
        [TestMethod()]
        public void PostPicturesToSmugMugTest()
        {
            string userName = string.Empty; // TODO: Initialize to an appropriate value
            string userPassword = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApi target = new SmugMugApi(userName, userPassword); // TODO: Initialize to an appropriate value
            List<string> fileList = null; // TODO: Initialize to an appropriate value
            PostPicturesToSmugMugArguments arguments = null; // TODO: Initialize to an appropriate value
            target.PostPicturesToSmugMug(fileList, arguments);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for logout
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void logoutTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            target.logout();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for IsValidSession
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void IsValidSessionTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsValidSession();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IsValidMethod
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void IsValidMethodTest()
        {
            string method = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = SmugMugApi_Accessor.IsValidMethod(method);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IsValidCategory
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void IsValidCategoryTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            string categoryName = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsValidCategory(categoryName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IsValidAlbum
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void IsValidAlbumTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            string albumName = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsValidAlbum(albumName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IsRESTError
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void IsRESTErrorTest()
        {
            string input = string.Empty; // TODO: Initialize to an appropriate value
            XmlDocument x = null; // TODO: Initialize to an appropriate value
            XmlDocument xExpected = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = SmugMugApi_Accessor.IsRESTError(input, out x);
            Assert.AreEqual(xExpected, x);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IsImplementedMethod
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void IsImplementedMethodTest()
        {
            string method = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = SmugMugApi_Accessor.IsImplementedMethod(method);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetSessionKey
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void GetSessionKeyTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            string user = string.Empty; // TODO: Initialize to an appropriate value
            string pass = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.GetSessionKey(user, pass);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetResponse
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void GetResponseTest()
        {
            HttpWebRequest smugMugRequest = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = SmugMugApi_Accessor.GetResponse(smugMugRequest);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetMD5Checksum
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void GetMD5ChecksumTest()
        {
            string fileName = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = SmugMugApi_Accessor.GetMD5Checksum(fileName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetImages
        ///</summary>
        [TestMethod()]
        public void GetImagesTest()
        {
            string userName = string.Empty; // TODO: Initialize to an appropriate value
            string userPassword = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApi target = new SmugMugApi(userName, userPassword); // TODO: Initialize to an appropriate value
            GetImagesArguments arguments = null; // TODO: Initialize to an appropriate value
            target.DownloadImages(arguments);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetImageData
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void GetImageDataTest()
        {
            string fileName = string.Empty; // TODO: Initialize to an appropriate value
            byte[] expected = null; // TODO: Initialize to an appropriate value
            byte[] actual;
            actual = SmugMugApi_Accessor.GetImageData(fileName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCategoryIDByName
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void GetCategoryIDByNameTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            string categoryName = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCategoryIDByName(categoryName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCategories
        ///</summary>
        [TestMethod()]
        public void GetCategoriesTest()
        {
            string userName = string.Empty; // TODO: Initialize to an appropriate value
            string userPassword = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApi target = new SmugMugApi(userName, userPassword); // TODO: Initialize to an appropriate value
            Dictionary<int, string> expected = null; // TODO: Initialize to an appropriate value
            Dictionary<int, string> actual;
            actual = target.GetCategories();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetAlbums
        ///</summary>
        [TestMethod()]
        public void GetAlbumsTest()
        {
            string userName = string.Empty; // TODO: Initialize to an appropriate value
            string userPassword = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApi target = new SmugMugApi(userName, userPassword); // TODO: Initialize to an appropriate value
            Dictionary<int, string> expected = null; // TODO: Initialize to an appropriate value
            Dictionary<int, string> actual;
            actual = target.GetAlbums();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetAlbumIDByName
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void GetAlbumIDByNameTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            string albumName = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetAlbumIDByName(albumName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Finalize
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void FinalizeTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor target = new SmugMugApi_Accessor(param0); // TODO: Initialize to an appropriate value
            target.Finalize();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for DownloadFile
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void DownloadFileTest()
        {
            string imageURL = string.Empty; // TODO: Initialize to an appropriate value
            string downloadLocation = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApi_Accessor.DownloadFile(imageURL, downloadLocation);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CreateAlbum
        ///</summary>
        [TestMethod()]
        public void CreateAlbumTest()
        {
            string userName = string.Empty; // TODO: Initialize to an appropriate value
            string userPassword = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApi target = new SmugMugApi(userName, userPassword); // TODO: Initialize to an appropriate value
            CreateAlbumArguments albumArguments = null; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.CreateAlbum(albumArguments);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SmugMugApi Constructor
        ///</summary>
        [TestMethod()]
        public void SmugMugApiConstructorTest1()
        {
            string userName = string.Empty; // TODO: Initialize to an appropriate value
            string userPassword = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApi target = new SmugMugApi(userName, userPassword);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SmugMugApi Constructor
        ///</summary>
        [TestMethod()]
        public void SmugMugApiConstructorTest()
        {
            string apiKey = string.Empty; // TODO: Initialize to an appropriate value
            string userAgent = string.Empty; // TODO: Initialize to an appropriate value
            string userName = string.Empty; // TODO: Initialize to an appropriate value
            string userPassword = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApi target = new SmugMugApi(apiKey, userAgent, userName, userPassword);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
